#pragma once
#include "assert.h"
#include "Line3D.h"

class Segment3D: public Line3D{
public:
	Vec3 p0;
	Vec3 p1;
	Segment3D(const Vec3& p0, const Vec3& p1);
	inline Vec3& operator[](const int& idx){assert(idx<2);return ((Vec3*)(&p0))[idx];};
};
